package client;

import com.why.extender.rpcextend.annotation.RpcConsumer;
import com.why.simpleboot.core.annotation.ioc.Autowired;
import com.why.simpleboot.core.annotation.mvc.GetMapping;
import com.why.simpleboot.core.annotation.mvc.RestController;
import com.why.rpc.*;

/**
 * @program: why-simpleboot-framework
 * @description:
 * @author: @why
 * @create: 2021-06-15 17:52
 **/
@RestController
public class UserController {

    @RpcConsumer
    @Autowired
    UserDao userDao;

    @GetMapping("/hello/world")
    public User getUserId() {
        return userDao.getUserId(new User("rpc/core",null));
    }
}
